<?php
namespace app\admin\controller;
use framework\ext\Check;

class TplController extends \app\base\controller\AdminController{

    //模板列表
    public function index(){
        $this->frameid = form('get.id');
        $this->dir = form('get.dir');
        $this->path = explode('/',$this->dir);
        $dirpath = model('themes')->DirPath($this->dir);  //读取路径
        $this->folder = model('themes')->folder($dirpath);   //读取路径下包含目录
        $this->files = model('themes')->files($dirpath,'*.{html}');  
        $this->display();  
    } 
}